//客户端快捷方式编辑
Ext.define("ES.view.clientshortcut.ClientShortcutEdit",{
    extend:"Ext.window.Window",
    alias:"widget.clientShortcutEdit",
    title:"客户端快捷方式",
    width:450,
    height:260,
    layout:"fit",
    modal:true,
    items:{
        xtype:"form",
        defaultType:"textfield",
        frame:true,
        layout:"column",
        buttonAlign:"center",
        defaults:{
            labelSeparator:":",
            labelWidth:56,
            labelAlign:"right",
            allowBlank:false,
            blankText:"不允许为空",
            msgTarget:"side"
        },
        items:[{
                    fieldLabel:"快捷名称",
                    name:"shortcutName",
                    columnWidth:1
               },{
                    xtype:"combo",
                    fieldLabel:"所属科目",
                    emptyText:"====所属科目====",
                    name:"catalogID",
                    queryMode:"local",
                    store:"CatalogStore",
                    displayField:"fullCatalogName",
                    valueField:"catalogID",
                    columnWidth:1
               },{
                    xtype:"textareafield",
                    fieldLabel:"提示信息",
                    height:40,
                    grow:true,
                    allowBlank:true,
                    name:"toolTip",
                    columnWidth:1
               },{
                    xtype:"combo",
                    fieldLabel:"快捷类型",
                    name:"type",
                    queryMode:"local",
                    lazyRender:true,
                    store:"ShortcutTypeStore",
                    displayField:"memberName",
                    valueField:"intValue",
                    value:0,
                    columnWidth:.5
               },{
                    xtype:"combo",
                    fieldLabel:"状态",
                    name:"status",
                    queryMode:"local",
                    lazyRender:true,
                    store:"ShortcutStatusStore",
                    displayField:"memberName",
                    valueField:"intValue",
                    value:0,
                    columnWidth:.5
               },{
                    xtype:"textareafield",
                    fieldLabel:"链接地址",
                    height:60,
                    grow:true,
                    name:"linkAddress",
                    columnWidth:1
               },{
                    xtype:"combo",
                    fieldLabel:"链接方式",
                    name:"linkTarget",
                    queryMode:"local",
                    lazyRender:true,
                    store:"LinkTargetStore",
                    displayField:"memberName",
                    valueField:"intValue",
                    value:0,
                    columnWidth:.5
               },{
                    xtype: 'numberfield',
                    fieldLabel:"排序号",
                    name:"orderNo",
                    value:0,
                    minValue:0,
                    columnWidth:.5
               }],
        buttons:[{
                    text:"保存",
                    action:"btnSave",
                    formBind:true,
                    disabled:true,
                    tooltip:"保存数据"
                },{
                    text:"取消",
                    action:"btnCancel",
                    tooltip:"关闭窗口"
                }]
    },
    initComponent:function(){
        this.callParent(arguments);
    }
})